Optimal. Leaf size=15 \[ -\tan ^{-1}\left (\sqrt {x}\right )+\tanh ^{-1}\left (\sqrt {x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 15, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.267, Rules used = {335, 304, 209,
212} \begin {gather*} \tanh ^{-1}\left (\sqrt {x}\right )-\text {ArcTan}\left (\sqrt {x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 212
Rule 304
Rule 335
Rubi steps
\begin {align*} \int \frac {\sqrt {x}}{1-x^2} \, dx &=2 \text {Subst}\left (\int \frac {x^2}{1-x^4} \, dx,x,\sqrt {x}\right )\\ &=\text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\sqrt {x}\right )-\text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sqrt {x}\right )\\ &=-\tan ^{-1}\left (\sqrt {x}\right )+\tanh ^{-1}\left (\sqrt {x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 15, normalized size = 1.00 \begin {gather*} -\tan ^{-1}\left (\sqrt {x}\right )+\tanh ^{-1}\left (\sqrt {x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(23\) vs.
\(2(11)=22\).
time = 0.19, size = 24, normalized size = 1.60
method | result | size |
derivativedivides | \(-\frac {\ln \left (\sqrt {x}-1\right )}{2}+\frac {\ln \left (\sqrt {x}+1\right )}{2}-\arctan \left (\sqrt {x}\right )\) | \(24\) |
default | \(-\frac {\ln \left (\sqrt {x}-1\right )}{2}+\frac {\ln \left (\sqrt {x}+1\right )}{2}-\arctan \left (\sqrt {x}\right )\) | \(24\) |
meijerg | \(-\frac {x^{\frac {3}{2}} \left (\ln \left (1-\left (x^{2}\right )^{\frac {1}{4}}\right )-\ln \left (1+\left (x^{2}\right )^{\frac {1}{4}}\right )+2 \arctan \left (\left (x^{2}\right )^{\frac {1}{4}}\right )\right )}{2 \left (x^{2}\right )^{\frac {3}{4}}}\) | \(40\) |
trager | \(\frac {\ln \left (\frac {2 \sqrt {x}+1+x}{x -1}\right )}{2}-\frac {\RootOf \left (\textit {\_Z}^{2}+1\right ) \ln \left (\frac {-\RootOf \left (\textit {\_Z}^{2}+1\right ) x +2 \sqrt {x}+\RootOf \left (\textit {\_Z}^{2}+1\right )}{x +1}\right )}{2}\) | \(55\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 23 vs.
\(2 (11) = 22\).
time = 0.52, size = 23, normalized size = 1.53 \begin {gather*} -\arctan \left (\sqrt {x}\right ) + \frac {1}{2} \, \log \left (\sqrt {x} + 1\right ) - \frac {1}{2} \, \log \left (\sqrt {x} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 23 vs.
\(2 (11) = 22\).
time = 1.06, size = 23, normalized size = 1.53 \begin {gather*} -\arctan \left (\sqrt {x}\right ) + \frac {1}{2} \, \log \left (\sqrt {x} + 1\right ) - \frac {1}{2} \, \log \left (\sqrt {x} - 1\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 26 vs.
\(2 (12) = 24\).
time = 0.10, size = 26, normalized size = 1.73 \begin {gather*} - \frac {\log {\left (\sqrt {x} - 1 \right )}}{2} + \frac {\log {\left (\sqrt {x} + 1 \right )}}{2} - \operatorname {atan}{\left (\sqrt {x} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 24 vs.
\(2 (11) = 22\).
time = 1.11, size = 24, normalized size = 1.60 \begin {gather*} -\arctan \left (\sqrt {x}\right ) + \frac {1}{2} \, \log \left (\sqrt {x} + 1\right ) - \frac {1}{2} \, \log \left ({\left | \sqrt {x} - 1 \right |}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.03, size = 11, normalized size = 0.73 \begin {gather*} \mathrm {atanh}\left (\sqrt {x}\right )-\mathrm {atan}\left (\sqrt {x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________